package com.cug.campus_sh_market_server.entity.param.notice;

import com.cug.campus_sh_market_server.entity.po.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author sxt
 * @version 1.0
 * @description TODO
 * @date 2022/3/28 18:40
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("添加通知入参对象，都不传查全部")
public class NoticeAddParam extends BaseEntity {

    @ApiModelProperty(value = "通知标题")
    @NotBlank
    private String title;

    @ApiModelProperty(value = "通知内容")
    @NotBlank
    private String content;

    @ApiModelProperty(value = "阅读次数")
    private Integer readCount;
}
